How to update resolution details: the Update Resource command
The Resolutions and Documents tables hold details of media files stored on a server. Situations may arise when the Resolutions / Documents table does not match the files on the server. The Update Resource facility may be used to rebuild the Resolutions / Documents tables based on the files found on the server. The process involves retrieving all files in the Multimedia records media directory and effectively adding them again to an empty list. All properties are calculated and set.
The naming convention for the directory structure on the server uses the IRN A unique identifier automatically assigned when a record is created. of the Multimedia record, which is padded out to at least four digits by zero filling the front of the number. Hence, an IRN of 10 becomes 0010 and 34567 remains as 34567. The number is then split by adding a directory marker in front of the third last digit.
If a Multimedia record has an IRN of 234, a path of 0/234 is generated; an IRN of 10 generates 0/010 and an IRN of 34567 generates 34/567. This generated path is appended to the pathway set in the ServerMediaPath Registry entry to form the full path to media files for the given Multimedia record.
Thus, if ServerMediaPath has a value of /home/emu/cmcc/multimedia
and a media record with an IRN of 12010 is saved, the following path would be generated:
/home/emu/cmcc/multimedia/12/010
Within this directory each file represents one media entry. Each file's naming convention is consistent with the media type, basename.size.format for image files and basename.format for other media files. In an image directory you may see:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In a non-image directory you may see:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To update the Multimedia resource resolutions:
- Select one or more records in the Multimedia module.
- On the Multimedia tab of the Ribbon:
Select Update>Current Record to update the current record The record currently displayed in Details View or highlighted in List View (there is a faint dotted line around it). It is only possible to have one current record at a time.
-OR-
Select Update>Selected Records to update the selected records.
Note: If a record is locked by another user (because they are modifying it), the update will stop and ask what action is required (Abort, Ignore, Retry).
The System retrieves all media and rebuilds the media table.
- If updating the current record, save it.